package model;

import java.util.ArrayList;
import java.util.List;

public class Teacher {
	private String name;
	private List<Subject> sublist = new ArrayList<>();
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public List<Subject> getSublist() {
		return sublist;
	}
	public void setSublist(List<Subject> sublist) {
		this.sublist = sublist;
	}
	public Teacher(String name) {
		this.name = name;
	}
	public Teacher() {
		
	}
	@Override
	public String toString() {
		return "Teacher [name=" + name + ", sublist=" + sublist + "]";
	}
	
	
}
